﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Air_Trafic_Control.Domain.Common;

namespace Air_Trafic_Control
{
   public static class Formulas
   {
      public static double SqrDistanceToCenter(int point)
      {
         return Math.Pow((point - Constants.SYS_RADAR_CENTER), 2);
      }

      public static double DistanceToCenter(int x, int y)
      {
         return Math.Sqrt(SqrDistanceToCenter(x) + SqrDistanceToCenter(y));
      }
   }
}
